package com.woniuxy.user.service;

import com.woniuxy.commons.entity.QueryEntity;
import com.woniuxy.commons.entity.User;
import com.woniuxy.commons.utils.ResponseResult;
import org.apache.ibatis.annotations.Param;

public interface UserService {
     ResponseResult findAll();

     ResponseResult findAll(int currentPage,int pageSize);

     ResponseResult deleteOne(int id);

     ResponseResult findByRecord(int id);//查看家庭档案

     ResponseResult findByAddress(int id);//查看收货地址

     ResponseResult findByUsername(String username);//根据用户名查询

     ResponseResult findByName(String name);//根据姓名查询

     ResponseResult deleteSome(int[] id);//批量删除

     ResponseResult findByTime(String time);//根据时间查询

     ResponseResult findStatus(int id);//查询状态码

     ResponseResult updateStatus(User user);//修改启用状态的状态

     ResponseResult findByCondition(QueryEntity<User> queryEntity);//按照条件搜索


}
